package clientDB;

import org.hibernate.Session;
/**
 * managing the interactions with database for the table algorithms
 * @author ran
 *
 */
public class PlugInsManager {
	private Session session = null;
	public PlugInsManager(Session session) {
		if(session == null)
			throw new RuntimeException("Invalid session object.");
		this.session = session;
	}
	public void save(PlugIns file){
		session.save(file);
	}
	public void update(PlugIns file){
		session.update(file);
	}
	public void delete(PlugIns file) {
		session.delete(file);
	}
}
